//
//  CWMediaWritter.h
//  CWDevelop
//
//  Created by LittoCats on 7/8/14.
//  Copyright (c) 2014 Littocats. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>

@interface CWMediaWriter : NSObject
/**
 *  
 */
+ (instancetype)defaultWriter;

/**
 *
 */
- (void)start;
- (void)pause:(BOOL)pause;
- (void)stop:(void (^)(NSURL *mediaPath))doneProcessor; //doneProcessor will be exculted on main thread

/**
 *
 */
- (void)progress:(void (^)(NSTimeInterval time))progress; //progress will be exculted on main thread
@end
